home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / ftn / atan2.z / atan2
Text File  |  1998-10-30  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4. AAAATTTTAAAANNNN2222((((3333FFFF))))                                                            AAAATTTTAAAANNNN2222((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      atan2, datan2, qatan2, atan2d, datan2d, qatan2d - FORTRAN arctangent
  10.      intrinsic function
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      rrrreeeeaaaallll rrrr1111,,,, rrrr2222,,,, rrrr3333
  14.      ddddoooouuuubbbblllleeee pppprrrreeeecccciiiissssiiiioooonnnn ddddpppp1111,,,, ddddpppp2222,,,, ddddpppp3333
  15.      rrrreeeeaaaallll****11116666 qqqqpppp1111,,,, qqqqpppp2222,,,, qqqqpppp3333
  16.      rrrreeeeaaaallll****4444 rrrr4444,,,, rrrr5555,,,, rrrr6666
  17.      rrrreeeeaaaallll****8888 ddddpppp4444,,,, ddddpppp5555,,,, ddddpppp6666
  18.      rrrreeeeaaaallll****11116666 qqqqpppp4444,,,, qqqqpppp5555,,,, qqqqpppp6666
  19.  
  20.      rrrr3333 ==== aaaattttaaaannnn2222((((rrrr1111,,,, rrrr2222))))
  21.  
  22.      ddddpppp3333 ==== ddddaaaattttaaaannnn2222((((ddddpppp1111,,,, ddddpppp2222))))
  23.      ddddpppp3333 ==== aaaattttaaaannnn2222((((ddddpppp1111,,,, ddddpppp2222))))
  24.  
  25.      qqqqpppp3333 ==== qqqqaaaattttaaaannnn2222((((qqqqpppp1111,,,, qqqqpppp2222))))
  26.      qqqqpppp3333 ==== aaaattttaaaannnn2222((((qqqqpppp1111,,,, qqqqpppp2222))))
  27.  
  28.      rrrr6666 ==== aaaattttaaaannnn2222dddd((((rrrr4444,,,, rrrr5555))))
  29.  
  30.      ddddpppp6666 ==== ddddaaaattttaaaannnn2222dddd((((ddddpppp4444,,,, ddddpppp5555))))
  31.      ddddpppp6666 ==== aaaattttaaaannnn2222dddd((((ddddpppp4444,,,, ddddpppp5555))))
  32.  
  33.      qqqqpppp6666 ==== qqqqaaaattttaaaannnn2222dddd((((qqqqpppp4444,,,, qqqqpppp5555))))
  34.      qqqqpppp6666 ==== aaaattttaaaannnn2222dddd((((qqqqpppp4444,,,, qqqqpppp5555))))
  35.  
  36. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  37.      _a_t_a_n_2 returns the arctangent of _a_r_g_1/_a_r_g_2 as a real value.  _d_a_t_a_n_2
  38.      returns the double-precision arctangent of its double-precision
  39.      arguments.  _q_a_t_a_n_2 returns the real*16 arctangent of its real*16
  40.      arguments.  The generic form _a_t_a_n_2 may be used with impunity with
  41.      double-precision or real*16 arguments.  If the value of the first
  42.      argument of _a_t_a_n_2, _d_a_t_a_n_2, or _q_a_t_a_n_2 is positive, the result is positive.
  43.      If the value of the first argument is negative, the result is negative.
  44.      When the value of the first argument is positive/negative zero, the
  45.      result is positive/negative zero if the second argument is positive and
  46.      positive/negative Pi if the second argument is negative.  If the value of
  47.      the second argument is zero, the absolute value of the result is Pi/2.
  48.      Both arguments must not have the value zero.  The result of _a_t_a_n_2,
  49.      _d_a_t_a_n_2, and _q_a_t_a_n_2 is in radians and is in the range: -Pi <= result <=
  50.      Pi.
  51.  
  52.      _a_t_a_n_2_d returns the arctangent of _a_r_g_1/_a_r_g_2 as a real*4 value.  _d_a_t_a_n_2_d
  53.      returns the real*8 arctangent of its real*8 arguments.  _q_a_t_a_n_2_d returns
  54.      the real*16 arctangent of its real*16 arguments.  The generic form _a_t_a_n_2_d
  55.      may be used with impunity with real*8 or real*16 arguments.  If the value
  56.      of the first argument of _a_t_a_n_2_d, _d_a_t_a_n_2_d, or _q_a_t_a_n_2_d is positive, the
  57.      result is positive.  When the value of the first argument is zero, the
  58.      result is zero if the second argument is positive and 180.0 if the second
  59.      argument is negative.  If the value of the first argument is negative,
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. AAAATTTTAAAANNNN2222((((3333FFFF))))                                                            AAAATTTTAAAANNNN2222((((3333FFFF))))
  71.  
  72.  
  73.  
  74.      the result is negative.  If the value of the second argument is zero, the
  75.      absolute value of the result is 90.0 .  Both arguments must not have the
  76.      value zero.  The result of _a_t_a_n_2_d, _d_a_t_a_n_2_d, and _q_d_a_t_a_n_2_d is in degrees
  77.      and is in the range: -180 degrees <= result <= 180 degrees.
  78.  
  79. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  80.      trig(3M).
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.